package net.huashitong.ssydt.article.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 新增，修改类型
 *
 * @author hemj
 * @version 2017/9/14
 */
@ApiModel(value = "ArticleTypeInVO", description = "文章类型新增、修改(后台)")
public class ArticleTypeInVO implements Serializable {

	private Long id;//分类ID

	@ApiModelProperty(value = "分类名称")
	@NotEmpty(message = "分类名称不能为空")
	private String name;//分类名称

	@ApiModelProperty(value = "是否显示")
	@NotNull(message = "是否显示不能为空")
	private Byte isShow;//是否显示

	@ApiModelProperty(value = "顺序")
	@NotNull(message = "顺序不能为空")
	@Min(value = 0, message = "顺序不能为负值")
	private Integer sequence;//顺序

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Byte getIsShow() {
		return isShow;
	}

	public void setIsShow(Byte isShow) {
		this.isShow = isShow;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
}
